{%include file="m.index.header.tpl.php"%}
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row row_margin">
   <form name="myform" method="post" action=""  enctype="multipart/form-data">
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">文章标题：</label>
        <div class="col-sm-10 ">
          <input type="text" class="form-control" value="{%$summarize_data.summarize_title%}" name="summarize_title">
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">文章内容：</label>
        <div class="col-sm-10 ">
          <textarea id="category_content" name="summarize_content" rows="22" cols="40" style="width: 100%">{%$summarize_data.summarize_content%}</textarea>
        </div>
      </div>
      {%if $summarize_data.summarize_type neq 5%}
	 <div class="form-group">
		  <label for="" class="col-sm-2  control-label">
			   附件：
		  </label>

		  <div class="col-sm-10 ">
			  {%if $summarize_data.summarize_file!=""%}
			  <br><input type="radio" name="summarize_file_re" value="0" checked>
			  <a href="upload/summarize_file/{%$summarize_data.summarize_file%}" target="_blank">{%$summarize_data.summarize_file%}</a>
			  <br><br><input type="radio" name="summarize_file" value="1" > 重新上传 <input id="summarize_file" name="summarize_file" type="file" size="60"/>
			  {%else%}
			  <input id="summarize_file" name="summarize_file" type="file" size="60"/>
			  <input type="hidden" name="summarize_file_re" value="1">
			  {%/if%}
				</div>
	</div>
	{%elseif $summarize_data.user_id eq $uid%}
	<div class="form-group">
		<label for="" class="col-sm-2  control-label">
			附件：
		</label>
		<div class="col-sm-10 ">
			{%if $summarize_data.summarize_file!=""%}
			<br><input type="radio" name="summarize_file_re" value="0" checked>
			<a href="upload/summarize_file/{%$summarize_data.summarize_file%}" target="_blank">{%$summarize_data.summarize_file%}</a>
			<br><br><input type="radio" name="summarize_file_re" value="1" > 重新 上传 <input id="summarize_file" name="summarize_file" type="file" size="60"/>
			{%else%}
			<input id="summarize_file" name="summarize_file" type="file" size="60"/>
			<input type="hidden" name="summarize_file_re" value="1">
			{%/if%}
		</div>
	</div>
	{%/if%}
    
  </div>
  <!--row  end-->
  <div class="row row_margin" >
    <button type="submit" class="btn btn-primary btn-lg btn-block btn-primary2">确定</button>
  </div>
</div>
</form>
<!--container  end--> 
<!--主体部分  end--> 
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<!--编辑器--> 
<script type="text/javascript" src="mstatic/xhe/xheditor-1.2.2.min.js"></script> 
<script type="text/javascript" src="mstatic/xhe/xheditor_lang/zh-cn.js"></script> 
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
}
function submitForm(){$('#myform').submit();}
</script>
</body>
</html>
